package com.netease.operator;

import com.netease.annotations.SetCache;
import com.netease.entity.Entity;

public interface Operator {
	public Entity get(int id);

	public boolean add(Entity entity);

	public boolean update(Entity entity);
	
	@SetCache(keyPrefix="@getNameById_", expiry=30000)
	public String getNameById(int id);
}
